package com.itlv.recursion.common.result;

/**
 * 业务异常类
 *
 * @author Lv
 * @date 2022/8/7
 */
public class BusinessException extends RuntimeException {
    /**
     * 业务运行时异常
     *
     * @param resultEnum 通用返回值枚举类
     */
    public BusinessException(ResultEnum resultEnum) {
        super(resultEnum.getCode() + " " + resultEnum.getMessage());
    }
}
